﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using CsharpTrainer.Core.DAL;
using Zeus.Thunder.Core;

namespace SharpTrainer.DataAccess
{
    class GetTableColumns : ITestCase
    {
        public void Run()
        {
            SqlDbUtil db = new SqlDbUtil();
            DataSet ds = db.GetDataSet("select * from Employees");
            foreach (DataColumn col in ds.Tables[0].Columns)
            {
                Console.WriteLine(col.ColumnName);
            }
        }
    }
}
